import logging
from test_a import log_set
import pytest
import test_a as f
if __name__ == '__main__':
    log_set()
    pytest.main(["test_a.py","-s","--alluredir=./data","--clean-alluredir"])
    import os
    os.system(r'allure generate ./data -o htmlreport --clean')
    f.sent_email(["./log.log",r"C:\Users\张震海\Desktop\dfs\learn\learn2\htmlreport\index.html"])